Skip to content

Add Arch Linux .pkg.tar.zst packages to desktop releases - #11

Closed
vipu18 wants to merge 3 commits into
jotalac:masterfrom
vipu18:feature/arch-linux-package
Closed

vipu18 wants to merge 3 commits into
jotalac:masterfrom
vipu18:feature/arch-linux-package

Conversation

@vipu18

@vipu18 vipu18 commented Nov 13, 2026

Copy link
Copy Markdown

Summary

Add native Arch Linux package support to Git Writer’s existing Kotlin/Compose desktop release process.

Changes

  • Add tools/arch-package.sh, which builds a self-contained Compose desktop application image on Arch Linux (OpenJDK 21), packages it with makepkg, and produces an installable .pkg.tar.zst.
  • Include a portable .tar.zst distribution with the bundled Java runtime.
  • Add an arch job to the existing .github/workflows/desktop-release.yml workflow for all and linux releases.
  • Attach Arch files to the same draft release as existing desktop installers, without modifying the project’s manual mobile artifact/publishing process.
  • Skip the Arch job for Windows/macOS-only runs while allowing the release aggregation job to proceed.

Installation

Download the Arch package from Releases and install with:

sudo pacman -U ./git-writer-*.pkg.tar.zst

Validation

The Arch build is configured and has been started in the fork: https://github.com/vipu18/git-writer/actions/workflows/arch-package.yml

The exact proposed upstream release workflow has not yet been validated by a complete release run.

This PR intentionally excludes the fork-specific automatic upstream synchronization workflow.

@jotalac

jotalac commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Thanks a lot for the effort, and for taking the time to put this together!

I decided not to merge this PR and solved it a bit differently. Starting with the next release, every release will include a portable Linux build: GitWriter--linux-x86_64.tar.gz (plus an arm64 version). It’s the bare app folder with its own bundled Java, so you can unpack it and run it on Arch or any other distro.

Why I went this way:

It reuses the build the .deb and .rpm are made from (built on Ubuntu 22.04 for glibc compatibility), so the release pipeline doesn’t need an extra Arch container build.
A .pkg.tar.zst downloaded from GitHub doesn’t get updates through pacman.

For a proper installer with updates, an AUR package (e.g. git-writer-bin) built on top of the .tar.gz would be ideal. If you’d like to create and maintain it on aur.archlinux.org, I’d be happy to link it in the README. I’ll keep the file names stable so the PKGBUILD won’t break.

Thanks again!

@jotalac jotalac closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants